This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Enhancement for distributed sparse linear regression example #7864
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eric-haibin-lin
changed the title
enhancement for distributed sparse linear regression example
[WIP] enhancement for distributed sparse linear regression example
Sep 13, 2017
eric-haibin-lin
changed the title
[WIP] enhancement for distributed sparse linear regression example
Enhancement for distributed sparse linear regression example
Sep 16, 2017
piiswrong
reviewed
Sep 20, 2017
python/mxnet/metric.py
Outdated
@@ -917,6 +917,73 @@ def update(self, labels, preds): | |||
self.sum_metric += (-numpy.log(prob + self.eps)).sum() | |||
self.num_inst += label.shape[0] | |||
|
|||
@register | |||
@alias('log_loss') | |||
class LogarithmicLoss(EvalMetric): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where does the name come from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The log loss used in avazu kaggle competition
https://www.kaggle.com/wiki/LogLoss
piiswrong
reviewed
Sep 20, 2017
python/mxnet/metric.py
Outdated
.. math:: | ||
-\\sum_{n=1}^{N}\\sum_{k=1}^{K}t_{nk}\\log (y_{nk}), | ||
|
||
where :math:`t_{nk}=1` if and only if sample :math:`n` belongs to class :math:`k`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's t and y? what's K?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to update the equation for log loss... Will update it later
crazy-cat
pushed a commit
to crazy-cat/incubator-mxnet
that referenced
this pull request
Oct 26, 2017
…7864) * add log loss * update sparse LR example * add readme * fix typo * fix lint * change name from log loss to nll * lint * enhance test
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
log_loss
metric used in avazu kaggle competition@szha